import request from '@/utils/request'

// 查询新闻信息列表
export function listCompanyNews(query) {
  return request({
    url: '/news/companyNews/list',
    method: 'get',
    params: query
  })
}

// 查询信息类型
export function getEmotionInfoList(companyId) {
  return request({
    url: '/news/companyNews/getEmotionInfoList/' + companyId,
    method: 'get'
  })
}

// 查询新闻信息详细
export function getCompanyNews(id) {
  return request({
    url: '/news/companyNews/' + id,
    method: 'get'
  })
}

// 保存新闻信息
export function saveCompanyNews(data) {
  return request({
    url: '/news/companyNews/save',
    method: 'post',
    data: data
  })
}

// 删除新闻信息
export function delCompanyNews(id) {
  return request({
    url: '/news/companyNews/' + id,
    method: 'delete'
  })
}

// 导出新闻信息
export function exportCompanyNews(query) {
  return request({
    url: '/news/companyNews/export',
    method: 'get',
    params: query
  })
}
